package com.seecen.entity;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @TableName EMP
 */
@Data
public class Emp implements Serializable {
    private Integer empno;

    private String ename;

    private String job;

    private Integer mgr;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") // 处理传统方式传参
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "Asia/Shanghai") // 处理json传参
    private Date hiredate;

    private Double sal;

    private Double comm;

    private Dept dept;

    private static final long serialVersionUID = 1L;
}